<?php
//接口可以省略abstrakt
interface Computer {
    
     public function run();
}

final class NotebookComputer implements Computer { public function run() {
    
    print( '实现了接口的方法');
    
}

}

$notebookcomputer = new NoteBookComputer(); $notebookcomputer->run();

 